package com.toocms.jinjuhang.ui.mine.download_section

import android.app.Application
import androidx.databinding.ObservableArrayList
import androidx.databinding.ObservableField
import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.tab.base.BaseModel
import com.toocms.tab.base.BaseViewModel
import com.toocms.tab.binding.ItemBinding

class DownloadSectionModel(application: Application) : BaseViewModel<BaseModel>(application) {
    val items = ObservableArrayList<DownloadSectionItemModel>()
    val itemBinding = ItemBinding.of<DownloadSectionItemModel>(
        BR.downloadSectionItemModel,
        R.layout.item_download_section
    )

    init {
        items +=DownloadSectionItemModel(this, ObservableField("宣传资料下载"))
        items +=DownloadSectionItemModel(this,ObservableField("文档下载"))
        items +=DownloadSectionItemModel(this,ObservableField("资质下载"))
    }
}